#include <stdio.h>
#include <string.h>

struct Book
{
    char name[10];
    char author[10];
    char subject[10];
    int id;
};

void printBook(struct Book book);

int main()
{

    struct Book book1;
    struct Book book2;

    strcpy(book1.name, "C Programming");
    strcpy(book1.author, "Author1");
    strcpy(book1.subject, "Subject1");
    book1.id = 1;
    printBook(book1);

    strcpy(book2.name, "C++ Programming");
    strcpy(book2.author, "Author2");
    strcpy(book2.subject, "Subject2");
    book2.id = 2;
    printBook(book2);

    return 0;
}

void printBook(struct Book book)
{
    printf("book: %s, %s, %s, %d\n", book.name, book.author, book.subject, book.id);
}